home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 20 / 020.d81 / t.control q < prev    next >
Text File  |  2022-08-26  |  2KB  |  117 lines

  1.  
  2.              CONTROL-Q
  3.  
  4.  
  5.  
  6. By: Bennett Cookson, Jr.
  7.  
  8.  
  9.   Although Commodore computers have
  10.  
  11. one of the best screen editors
  12.  
  13. around, the editor's quote mode can
  14.  
  15. sometimes be bothersome.  Sure,
  16.  
  17. you've experienced it. You're typing
  18.  
  19. along, particularly typing in strings
  20.  
  21. surrounded by quotes, when all of a
  22.  
  23. sudden your cursor controls produce
  24.  
  25. unwanted reversed characters. Then,
  26.  
  27. you have to hit RETURN to get out of
  28.  
  29. quote mode, go back up to the line
  30.  
  31. and fix it.  Well, Control-Q gives
  32.  
  33. you complete control of quote mode.
  34.  
  35.   When you run the program, a machine
  36.  
  37. language routine is loaded and run.
  38.  
  39. This routine is interrupt-driven,
  40.  
  41. thus it is executed 60 times per
  42.  
  43. second. The ML routine pokes 212,0
  44.  
  45. and pokes 216,0 to clear quote mode
  46.  
  47. and insert mode.  Also, the routine
  48.  
  49. checks to see if CTRL/Q is being
  50.  
  51. pressed. If so, it then toggles quote
  52.  
  53. mode, turning it on or off.
  54.  
  55.   When the program begins, you will
  56.  
  57. be prompted with 'LOCK? (STOP/RESTORE
  58.  
  59. WON'T DESTROY IT) y or n.Y If you
  60.  
  61. answer 'Y' then a RUN/STOP-RESTORE
  62.  
  63. will not remove your Ctrl-Q routine.
  64.  
  65. This is accomplished by changing the
  66.  
  67. vectors at 655-656 to point to the
  68.  
  69. Control-Q routine, every time a BASIC
  70.  
  71. warm-start is performed. This way
  72.  
  73. Control-Q will always be there when
  74.  
  75. you need it.
  76.  
  77.   As is, the machine language program
  78.  
  79. is stored beginning at 679 ($02A7),
  80.  
  81. using only 64 bytes of memory. To
  82.  
  83. change the starting address, change
  84.  
  85. the assignment of the variable SA, in
  86.  
  87. line 200 of the BASIC loader, to the
  88.  
  89. desired address.
  90.  
  91.  
  92.               ------
  93.  
  94.    This program is copyrighted by
  95.  
  96.  Commodore Microcomputers magazine.
  97.  
  98.    All rights to it are reserved.
  99.  
  100.  LOADSTAR has relieved you from the
  101.  
  102.   burden of keying in this program.
  103.  
  104.  For more complete information about
  105.  
  106.  this program, refer to the February
  107.  
  108.        1986 issue of Commodore
  109.  
  110.             Microcomputers.
  111.  
  112. >Files used: CONTROL Q
  113.              CONTROL-Q.MSG
  114.  
  115. ---------< end of article >-----------
  116.  
  117.